home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 1.0 for Developers / QuickTime 1.0 for Developers.iso / Goodies / DiVA VideoShop™ / VideoShop Demo / VideoShop Demo / background_2645.xml next >
Extensible Markup Language  |  1991-09-05  |  30KB  |  305 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2645</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3651.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3077.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>579</left>
  23.             <top>440</top>
  24.             <right>605</right>
  25.             <bottom>465</bottom>
  26.         </rect>
  27.         <style>opaque</style>
  28.         <showName> <false /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <true /> </autoHighlight>
  31.         <sharedHighlight> <false /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>8419</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>next</name>
  40.         <script>on mouseUpglobal qpModeGrab,qpModeKill,qpEffectif qpModeKill then exit mouseUpif not qpModeGrab thenput (line 3 of fld "time") into qpEffectlock screengo next cdend ifend mouseUpon mouseStillDownglobal qpModeGrabif qpModeGrab thenset the cursor to "Grabber"set the loc of me to the mouseLocend ifend mouseStillDown</script>
  41.     </part>
  42.     <part>
  43.         <id>2</id>
  44.         <type>button</type>
  45.         <visible> <true /> </visible>
  46.         <reserved5> 0 </reserved5>
  47.         <reserved4> 0 </reserved4>
  48.         <reserved3> 0 </reserved3>
  49.         <reserved2> 0 </reserved2>
  50.         <reserved1> 0 </reserved1>
  51.         <enabled> <true /> </enabled>
  52.         <rect>
  53.             <left>551</left>
  54.             <top>440</top>
  55.             <right>577</right>
  56.             <bottom>465</bottom>
  57.         </rect>
  58.         <style>opaque</style>
  59.         <showName> <false /> </showName>
  60.         <highlight> <false /> </highlight>
  61.         <autoHighlight> <true /> </autoHighlight>
  62.         <sharedHighlight> <false /> </sharedHighlight>
  63.         <family>0</family>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>17779</icon>
  66.         <textAlign>center</textAlign>
  67.         <font>Chicago</font>
  68.         <textSize>12</textSize>
  69.         <textStyle>plain</textStyle>
  70.         <name>next</name>
  71.         <script>on mouseUpglobal qpModeGrab,qpModeKill,qpEffectif qpModeKill then exit mouseUpif not qpModeGrab thenput (line 3 of fld "time") into qpEffectlock screengo prev cdend ifend mouseUpon mouseStillDownglobal qpModeGrabif qpModeGrab thenset the cursor to "Grabber"set the loc of me to the mouseLocend ifend mouseStillDown</script>
  72.     </part>
  73.     <part>
  74.         <id>3</id>
  75.         <type>field</type>
  76.         <visible> <true /> </visible>
  77.         <dontWrap> <false /> </dontWrap>
  78.         <dontSearch> <false /> </dontSearch>
  79.         <sharedText> <false /> </sharedText>
  80.         <fixedLineHeight> <false /> </fixedLineHeight>
  81.         <autoTab> <false /> </autoTab>
  82.         <lockText> <true /> </lockText>
  83.         <rect>
  84.             <left>65375</left>
  85.             <top>455</top>
  86.             <right>282</right>
  87.             <bottom>469</bottom>
  88.         </rect>
  89.         <style>transparent</style>
  90.         <autoSelect> <false /> </autoSelect>
  91.         <showLines> <false /> </showLines>
  92.         <wideMargins> <false /> </wideMargins>
  93.         <multipleLines> <false /> </multipleLines>
  94.         <reservedFamily> 0 </reservedFamily>
  95.         <titleWidth>0</titleWidth>
  96.         <icon>0</icon>
  97.         <textAlign>center</textAlign>
  98.         <font>Helvetica</font>
  99.         <textSize>12</textSize>
  100.         <textStyle>plain</textStyle>
  101.         <textHeight>16</textHeight>
  102.         <name>number</name>
  103.         <script>on mouseDownglobal qpModeGrabif not qpModeGrab then exit mouseDownput the mouseLoc into currMouseput botRight of target into cornerif the style of me is "scrolling" thenput (item 1 of corner)-20 into item 1 of cornerend ifif item 1 of corner - item 1 of currMouse < 10 and ¬¨item 2 of corner - item 2 of currMouse < 10 then put true into growMiconelse put false into growMiconset the cursor to grabberrepeat until the mouse is upset the loc of me to the mouseLocend repeatend mouseDown</script>
  104.     </part>
  105.     <part>
  106.         <id>4</id>
  107.         <type>field</type>
  108.         <visible> <true /> </visible>
  109.         <dontWrap> <false /> </dontWrap>
  110.         <dontSearch> <false /> </dontSearch>
  111.         <sharedText> <false /> </sharedText>
  112.         <fixedLineHeight> <false /> </fixedLineHeight>
  113.         <autoTab> <false /> </autoTab>
  114.         <lockText> <false /> </lockText>
  115.         <rect>
  116.             <left>0</left>
  117.             <top>0</top>
  118.             <right>33</right>
  119.             <bottom>31</bottom>
  120.         </rect>
  121.         <style>scrolling</style>
  122.         <autoSelect> <false /> </autoSelect>
  123.         <showLines> <false /> </showLines>
  124.         <wideMargins> <false /> </wideMargins>
  125.         <multipleLines> <false /> </multipleLines>
  126.         <reservedFamily> 0 </reservedFamily>
  127.         <titleWidth>0</titleWidth>
  128.         <icon>0</icon>
  129.         <textAlign>left</textAlign>
  130.         <font>Helvetica</font>
  131.         <textSize>9</textSize>
  132.         <textStyle>plain</textStyle>
  133.         <textHeight>12</textHeight>
  134.         <name>miconList</name>
  135.         <script></script>
  136.     </part>
  137.     <part>
  138.         <id>5</id>
  139.         <type>field</type>
  140.         <visible> <false /> </visible>
  141.         <dontWrap> <false /> </dontWrap>
  142.         <dontSearch> <false /> </dontSearch>
  143.         <sharedText> <true /> </sharedText>
  144.         <fixedLineHeight> <false /> </fixedLineHeight>
  145.         <autoTab> <false /> </autoTab>
  146.         <lockText> <false /> </lockText>
  147.         <rect>
  148.             <left>0</left>
  149.             <top>1</top>
  150.             <right>12</right>
  151.             <bottom>16</bottom>
  152.         </rect>
  153.         <style>rectangle</style>
  154.         <autoSelect> <false /> </autoSelect>
  155.         <showLines> <false /> </showLines>
  156.         <wideMargins> <false /> </wideMargins>
  157.         <multipleLines> <false /> </multipleLines>
  158.         <reservedFamily> 0 </reservedFamily>
  159.         <titleWidth>0</titleWidth>
  160.         <icon>0</icon>
  161.         <textAlign>left</textAlign>
  162.         <font>Geneva</font>
  163.         <textSize>12</textSize>
  164.         <textStyle>plain</textStyle>
  165.         <textHeight>16</textHeight>
  166.         <name>field data</name>
  167.         <script>on mouseDownglobal qpModeKill,qpModeGrabif qpModeKill thenput (long name of me)&","&(number of me) into line 4 of fld "field data"killFldend ifif not qpModeGrab then exit mouseDownput the mouseLoc into currMouseput botRight of target into cornerif the style of me is "scrolling" thenput (item 1 of corner)-20 into item 1 of cornerend ifif item 1 of corner - item 1 of currMouse < 10 and ¬¨item 2 of corner - item 2 of currMouse < 10 then put true into growMiconelse put false into growMiconif growMicon thenset the cursor to "drag"repeat until the mouse is upput the mouseLoc into mousePtif currMouse <> mousePt thenput item 1 of currMouse - item 1 of mousePt into currMouseHput item 2 of currMouse - item 2 of mousePt into currMouseVput rect of target into newPosput item 3 of newPos - currMouseH into item 3 of newPosput item 4 of newPos - currMouseV into item 4 of newPosput mousePt into currMouseset rect of target to newPosend ifend repeatelseset the cursor to grabberrepeat until the mouse is up  -- no Micon - drag the btn itsef aroundput the mouseLoc into mousePtif currMouse <> mousePt thenput item 1 of currMouse - item 1 of mousePt into currMouseHput item 2 of currMouse - item 2 of mousePt into currMouseVput rect of target into newPosput item 1 of newPos - currMouseH into item 1 of newPosput item 2 of newPos - currMouseV into item 2 of newPosput item 3 of newPos - currMouseH into item 3 of newPosput item 4 of newPos - currMouseV into item 4 of newPosput mousePt into currMouseset rect of target to newPosend ifend repeatend ifend mouseDownon openFieldput (long name of me) into line 4 of fld "field data"openField2end openField</script>
  168.     </part>
  169.     <part>
  170.         <id>6</id>
  171.         <type>field</type>
  172.         <visible> <false /> </visible>
  173.         <dontWrap> <false /> </dontWrap>
  174.         <dontSearch> <false /> </dontSearch>
  175.         <sharedText> <false /> </sharedText>
  176.         <fixedLineHeight> <false /> </fixedLineHeight>
  177.         <autoTab> <false /> </autoTab>
  178.         <lockText> <false /> </lockText>
  179.         <rect>
  180.             <left>5</left>
  181.             <top>2</top>
  182.             <right>17</right>
  183.             <bottom>17</bottom>
  184.         </rect>
  185.         <style>rectangle</style>
  186.         <autoSelect> <false /> </autoSelect>
  187.         <showLines> <false /> </showLines>
  188.         <wideMargins> <false /> </wideMargins>
  189.         <multipleLines> <false /> </multipleLines>
  190.         <reservedFamily> 0 </reservedFamily>
  191.         <titleWidth>0</titleWidth>
  192.         <icon>0</icon>
  193.         <textAlign>left</textAlign>
  194.         <font>Geneva</font>
  195.         <textSize>12</textSize>
  196.         <textStyle>plain</textStyle>
  197.         <textHeight>16</textHeight>
  198.         <name>field data/2</name>
  199.         <script>on mouseDownglobal qpModeFieldsif not qpModeFields then exit mouseDownput the mouseLoc into currMouseput botRight of target into cornerif the style of me is "scrolling" thenput (item 1 of corner)-20 into item 1 of cornerend ifif item 1 of corner - item 1 of currMouse < 10 and ¬¨item 2 of corner - item 2 of currMouse < 10 then put true into growMiconelse put false into growMiconif growMicon thenrepeat until the mouse is upput the mouseLoc into mousePtif currMouse <> mousePt thenput item 1 of currMouse - item 1 of mousePt into currMouseHput item 2 of currMouse - item 2 of mousePt into currMouseVput rect of target into newPosput item 3 of newPos - currMouseH into item 3 of newPosput item 4 of newPos - currMouseV into item 4 of newPosput mousePt into currMouseset rect of target to newPosend ifend repeatelseset the cursor to grabberrepeat until the mouse is upset the loc of me to the mouseLocend repeatend ifend mouseDown</script>
  200.     </part>
  201.     <part>
  202.         <id>7</id>
  203.         <type>field</type>
  204.         <visible> <true /> </visible>
  205.         <dontWrap> <false /> </dontWrap>
  206.         <dontSearch> <false /> </dontSearch>
  207.         <sharedText> <false /> </sharedText>
  208.         <fixedLineHeight> <false /> </fixedLineHeight>
  209.         <autoTab> <false /> </autoTab>
  210.         <lockText> <false /> </lockText>
  211.         <rect>
  212.             <left>0</left>
  213.             <top>0</top>
  214.             <right>100</right>
  215.             <bottom>100</bottom>
  216.         </rect>
  217.         <style>opaque</style>
  218.         <autoSelect> <false /> </autoSelect>
  219.         <showLines> <false /> </showLines>
  220.         <wideMargins> <false /> </wideMargins>
  221.         <multipleLines> <false /> </multipleLines>
  222.         <reservedFamily> 0 </reservedFamily>
  223.         <titleWidth>0</titleWidth>
  224.         <icon>0</icon>
  225.         <textAlign>left</textAlign>
  226.         <font>Geneva</font>
  227.         <textSize>12</textSize>
  228.         <textStyle>plain</textStyle>
  229.         <textHeight>16</textHeight>
  230.         <name>picture data</name>
  231.         <script>on mouseDownglobal qpModeKill,qpModeGrabif qpModeKill thenput (short id of me) into line 4 of fld "field data"killPICTexit mouseDownend ifif not qpModeGrab thenhidePICTSshowPICTSexit mouseDownend ifput the mouseLoc into currMouseput botRight of target into cornerif the style of me is "scrolling" thenput (item 1 of corner)-20 into item 1 of cornerend ifif item 1 of corner - item 1 of currMouse < 10 and ¬¨item 2 of corner - item 2 of currMouse < 10 then put true into growMiconelse put false into growMiconif growMicon thenset the cursor to "drag"repeat until the mouse is upput the mouseLoc into mousePtif currMouse <> mousePt thenput item 1 of currMouse - item 1 of mousePt into currMouseHput item 2 of currMouse - item 2 of mousePt into currMouseVput rect of target into newPosput item 3 of newPos - currMouseH into item 3 of newPosput item 4 of newPos - currMouseV into item 4 of newPosput mousePt into currMouseset rect of target to newPosend ifend repeatelseset the cursor to grabberrepeat until the mouse is up  -- no Micon - drag the btn itsef aroundput the mouseLoc into mousePtif currMouse <> mousePt thenput item 1 of currMouse - item 1 of mousePt into currMouseHput item 2 of currMouse - item 2 of mousePt into currMouseVput rect of target into newPosput item 1 of newPos - currMouseH into item 1 of newPosput item 2 of newPos - currMouseV into item 2 of newPosput item 3 of newPos - currMouseH into item 3 of newPosput item 4 of newPos - currMouseV into item 4 of newPosput mousePt into currMouseset rect of target to newPosend ifend repeatend ifend mouseDown</script>
  232.     </part>
  233.     <part>
  234.         <id>8</id>
  235.         <type>field</type>
  236.         <visible> <false /> </visible>
  237.         <dontWrap> <false /> </dontWrap>
  238.         <dontSearch> <false /> </dontSearch>
  239.         <sharedText> <false /> </sharedText>
  240.         <fixedLineHeight> <false /> </fixedLineHeight>
  241.         <autoTab> <false /> </autoTab>
  242.         <lockText> <false /> </lockText>
  243.         <rect>
  244.             <left>0</left>
  245.             <top>0</top>
  246.             <right>12</right>
  247.             <bottom>12</bottom>
  248.         </rect>
  249.         <style>rectangle</style>
  250.         <autoSelect> <false /> </autoSelect>
  251.         <showLines> <false /> </showLines>
  252.         <wideMargins> <false /> </wideMargins>
  253.         <multipleLines> <false /> </multipleLines>
  254.         <reservedFamily> 0 </reservedFamily>
  255.         <titleWidth>0</titleWidth>
  256.         <icon>0</icon>
  257.         <textAlign>left</textAlign>
  258.         <font>Geneva</font>
  259.         <textSize>12</textSize>
  260.         <textStyle>plain</textStyle>
  261.         <textHeight>16</textHeight>
  262.         <name>time</name>
  263.         <script></script>
  264.     </part>
  265.     <part>
  266.         <id>9</id>
  267.         <type>field</type>
  268.         <visible> <false /> </visible>
  269.         <dontWrap> <false /> </dontWrap>
  270.         <dontSearch> <false /> </dontSearch>
  271.         <sharedText> <true /> </sharedText>
  272.         <fixedLineHeight> <false /> </fixedLineHeight>
  273.         <autoTab> <false /> </autoTab>
  274.         <lockText> <false /> </lockText>
  275.         <rect>
  276.             <left>3</left>
  277.             <top>6</top>
  278.             <right>33</right>
  279.             <bottom>18</bottom>
  280.         </rect>
  281.         <style>rectangle</style>
  282.         <autoSelect> <false /> </autoSelect>
  283.         <showLines> <false /> </showLines>
  284.         <wideMargins> <false /> </wideMargins>
  285.         <multipleLines> <false /> </multipleLines>
  286.         <reservedFamily> 0 </reservedFamily>
  287.         <titleWidth>0</titleWidth>
  288.         <icon>0</icon>
  289.         <textAlign>left</textAlign>
  290.         <font>Geneva</font>
  291.         <textSize>12</textSize>
  292.         <textStyle>plain</textStyle>
  293.         <textHeight>16</textHeight>
  294.         <name>field data/3</name>
  295.         <script></script>
  296.     </part>
  297.     <content>
  298.         <layer>background</layer>
  299.         <id>5</id>
  300.         <text>rectangletruecard field id 2 of card id 8441 of stack "Macintosh HD:Gene's VideoShop:CD Release:READ ME"</text>
  301.     </content>
  302.     <name>presentation</name>
  303.     <script>-- All scripts Copyright ¬© 1991 Digital Video Applications Corp.,-- All Rights Reservedon domenu choiceglobal qpModeGrab,qpModeKillif choice="Activate VideoShop" thenif offset("Modes",windows()) ‚â†0 then close window "Modes"if offset("Styles",windows()) ‚â†0 then close window "Styles"if offset("Effects",windows()) ‚â†0 then close window "Effects"choose browse toolVideoShopControl VideoShopput "Activate Hypercard" into menuItem 1 of menu "Authoring"else if choice="Activate Hypercard" thenopenBackgroundelse if choice="Close Presentation" thenclose window (short name of this stack)else if choice="Template" thenif the editBkgnd is false thenset the editBkgnd to trueelseset the editBkgnd to falseend ifelse if choice="Set Slide Duration" thenask "Slide duration in seconds? (0=No time)" with line 1 of fld "time"if it is 0 then exit domenuput it into line 1 of fld "time"else if choice="Match Slide to Sound" thenask "Name of sound resource? ("&quote&"None"&quote&"=No sound)" with line 2 of fld "time"if it is "None" then put empty into line 2 of fld "Time"else if it is empty or it is 0 then exit domenuelseput it into line 2 of fld "Time"end ifelse if choice="New PICTure" thenask "Add which PICTure?"put it into tempif temp is empty then exit domenulock screendomenu "new button"choose browse toolset the name of button (number of buttons) to tempget the script of fld "Picture data"set the script of button (number of buttons) to itset the style of button (number of buttons) to rectangleset the textFont of button (number of buttons) to helveticaif fld "picture data" is empty thenput temp&","&(short id of button (number of buttons)) into fld "picture data"elseput return&temp&","&(short id of button (number of buttons)) after fld "Picture data"end ifput (item 2 of stripPath(temp)) into temp2picture temp2,resource,rect,falseput (item 2 of stripPath(temp)) into temp2set the rect of button (number of buttons) to rect of window temp2close window temp2unlock screenelse if choice="New Slide" thendomenu "New Card"else if choice="Delete Slide" thendomenu "Delete Card"else if choice="New Template T-Box" thennewObject2else if choice="New Text Box" thennewObjecthidePICTSif qpModeGrab is true then grabberModeelse if qpModeKill is true then killModeelse browseModeelse if choice="Lock Text Boxes" thenlockfields trueput "Unlock Text Boxes" into menuItem 8 of menu "Objects"else if choice="Unlock Text Boxes" thenlockFields falseput "Lock Text Boxes" into menuItem 8 of menu "Objects"else if choice="qp Tools" thenpalette "modes"else if choice="Box Styles" thenpalette "Styles"else if choice="Slide Effects" thenpalette "Effects"else if choice="All qp Palettes" thenpalette "modes"palette "Styles"palette "Effects"else if choice="Left Align" thenset the checkMark of menuItem 1 of menu "Style" to trueset the checkMark of menuItem 2 of menu "Style" to falseset the checkMark of menuItem 3 of menu "Style" to falseif word 1 of line 4 of fld "field data" is card thenset the textAlign of cd fld id (word 4 of item 1 of line 4 of fld "field data") to leftelseset the textAlign of fld id (word 4 of item 1 of line 4 of fld "field data") to leftend ifelse if choice="Center Align" thenset the checkMark of menuItem 1 of menu "Style" to falseset the checkMark of menuItem 2 of menu "Style" to trueset the checkMark of menuItem 3 of menu "Style" to falseif word 1 of line 4 of fld "field data" is card thenset the textAlign of cd fld id (word 4 of item 1 of line 4 of fld "field data") to centerelseset the textAlign of fld id (word 4 of item 1 of line 4 of fld "field data") to centerend ifelse if choice="Right Align" thenset the checkMark of menuItem 1 of menu "Style" to falseset the checkMark of menuItem 2 of menu "Style" to falseset the checkMark of menuItem 3 of menu "Style" to trueif word 1 of line 4 of fld "field data" is card thenset the textAlign of cd fld id (word 4 of item 1 of line 4 of fld "field data") to rightelseset the textAlign of fld id (word 4 of item 1 of line 4 of fld "field data") to rightend ifelse pass domenuend domenuon browseModeglobal qpModeGrab,qpModeKill,draggingMiconchoose browse toolset the enabled of menuItem 3 of menu "Objects" to trueset the enabled of menuItem 8 of menu "Edit" to falseset the editBkgnd to falseput empty into draggingMiconput false into qpModeGrabput false into qpModeKilllock screenput line 3 of fld "field data" into lockModerepeat with x=1 to number of cd fldsset the lockText of cd fld x to lockModeset the style of cd fld x to (line x of fld "field data/2")end repeatrepeat with x=1 to number of lines of fld "field data/3"set the lockText of fld id (word 4 of item 2 of line x of fld "field data/3") to lockModeset the style of fld id (word 4 of item 2 of line x of fld "field data/3") to (item 1 of line x of fld "field data/3")end repeatunlock screenend browseModeon grabbermodeglobal draggingMicon,qpModeGrab,qpModeKillchoose browse toolset the enabled of menuItem 3 of menu "Objects" to trueset the enabled of menuItem 8 of menu "Edit" to falseset the editBkgnd to falseput true into qpModeGrabput false into qpModeKillput "bypass" into item 2 of draggingMiconlock screenhidePICTSrepeat with x=1 to number of cd fldsset the lockText of cd fld x to trueif the style of cd fld x is transparent or the style of cd fld x is opaque thenset the style of cd fld x to rectangleend ifend repeatrepeat with x=1 to number of lines of fld "field data/3"set the lockText of fld id (word 4 of item 2 of line x of fld "field data/3") to trueif the style of fld id (word 4 of item 2 of line x of fld "field data/3") is transparent¬¨or the style of fld id (word 4 of item 2 of line x of fld "field data/3") is opaque thenset the style of fld id (word 4 of item 2 of line x of fld "field data/3") to rectangleend ifend repeatunlock screenend grabberModeon killModeglobal qpModeGrab,qpModeKill,draggingMiconchoose browse toolset the enabled of menuItem 3 of menu "Objects" to trueset the enabled of menuItem 8 of menu "Edit" to falseset the editBkgnd to falseput empty into draggingMiconput false into qpModeGrabput true into qpModeKillput "delete" into item 2 of draggingMiconlock screenhidePICTSrepeat with x=1 to number of cd fldsset the lockText of cd fld x to trueif the style of cd fld x is transparent or the style of cd fld x is opaque thenset the style of cd fld x to rectangleend ifend repeatrepeat with x=1 to number of lines of fld "field data/3"set the lockText of fld id (word 4 of item 2 of line x of fld "field data/3") to trueif the style of fld id (word 4 of item 2 of line x of fld "field data/3") is transparent¬¨or the style of fld id (word 4 of item 2 of line x of fld "field data/3") is opaque thenset the style of fld id (word 4 of item 2 of line x of fld "field data/3") to rectangleend ifend repeatunlock screenend killModeon newTool choicechoose choice toolhidePICTSset the enabled of menuItem 3 of menu "Objects" to falseset the enabled of menuItem 8 of menu "Edit" to trueend newToolon newObjectlock screendomenu "New Field"put (number of cd flds) into fldNumchoose browse toolget the script of field "field data"set the script of cd fld fldNum to itset the lockText of cd fld fldNum to trueset the style of cd fld fldNum to (line 1 of fld "field data")put (line 1 of fld "field data") into line fldNum of fld "field data/2"if the style of cd fld fldNum is opaque or style of cd fld fldNum is transparent thenset the style of cd fld fldNum to rectangleend ifunlock screenend newObjecton newObject2lock screenset the editbkgnd to truedomenu "New Field"set the editbkgnd to trueput (number of lines of fld "field data/3")+1 into lineNumput (number of flds) into fldNumset the editbkgnd to falsechoose browse toolget the script of field "field data"set the script of fld fldNum to itset the lockText of fld fldNum to trueset the style of fld fldNum to (line 1 of fld "field data")put (line 1 of fld "field data") into item 1 of line lineNum of fld "field data/3"put long name of fld fldNum into item 2 of line lineNum of fld "field data/3"if the style of fld fldNum is opaque or style of fld fldNum is transparent thenset the style of fld fldNum to rectangleend ifunlock screenend newObject2on styleChoice choiceput choice into line 1 of fld "Field data"end styleChoiceon lockFields statusset cursor to watchrepeat with x=1 to number of cd fldsset the lockText of cd fld x to statusend repeatrepeat with x=8 to number of fldsset the lockText of fld x to statusend repeatput status into line 3 of fld "field data"end lockFieldson openField2if word 1 of item 1 of line 4 of fld "field data" is "card" thenget the textAlign of cd fld id (word 4 of item 1 of line 4 of fld "field data")elseget the textAlign of fld id (word 4 of item 1 of line 4 of fld "field data")end ifdomenu (it&&"Align")end openField2on exitFieldset the checkMark of menuItem 1 of menu "Style" to falseset the checkMark of menuItem 2 of menu "Style" to falseset the checkMark of menuItem 3 of menu "Style" to falseend exitFieldon killFldlock screenchoose field toolif word 1 of item 1 of line 4 of fld "field data" is card thenselect cd fld id (word 4 of item 1 of line 4 of fld "field data")delete line (item 2 of line 4 of fld "field data") of fld "field data/2"elseselect fld id (word 4 of item 1 of line 4 of fld "field data")delete line ((item 2 of line 4 of fld "field data")-7) of fld "field data/3"end ifdomenu "Clear Field"choose browse toolunlock screenend killFldon showPICTSrepeat with count=1 to number of lines of fld "picture data"put item 2 of strippath(item 1 of (line count of fld "picture data")) into windowNameput item 2 of (line count of fld "picture data") into buttonIDpicture windowName,resource,rect,falseset the rect of window (item 2 of stripPath(windowName)) to rect of button id buttonIDshow window (item 2 of stripPath(windowName))end repeatend showPICTSon hidePICTSrepeat with count=1 to number of lines of fld "picture data"put (item 2 of stripPath(line count of fld "picture data")) into windowNameif offset(windowName,windows()) ‚â†0 then close window windowNameend repeatend hidePICTson killPICTput line 4 of fld "field data" into curIDlock screenchoose button toolselect button id curIDdomenu "clear button"choose browse toolrepeat with x=1 to number of lines of fld "picture data"if item 2 of line x of fld "picture data" is curID thendelete line x of fld "Picture data"exit repeatend ifend repeatend killPICTon cardEffect theEffectput theEffect into line 3 of fld "time"lock screenlock messagescloseCardgo next cdunlock screen with visual theEffectgo prev cdopenCardunlock messagesend cardEffecton MiconListIDput the id of bkgnd fld "MiconList" into item 1 of returnValueput the short name of this stack into item 2 of returnValuereturn returnValueend MiconListID-- initson openBackgroundglobal qpModeKill,qpModeGrab,gVideoShopActivelock screenset the userlevel to 5put false into qpModeKillput false into qpModeGrabif gVideoshopActive is true thenVideoShopControl Hypercardelseput short name of this stack into hellounlock screengo stack "VideoShop" in a new windowVideoShopControl HyperCardshow window hellolock screenend ifdelete menu "Tools"put "Activate VideoShop" into menuItem 1 of menu "Authoring"if menuItem 1 of menu "File" is "Close Presentation" then exit openBackGround-- setup "File"put "Close Presentation" into menu "File"set the cmdchar of menuitem 1 of menu "File" to "W"-- setup "Go"repeat with x=1 to 5delete menuItem 1 of menu "Go"end repeatdelete menuItem 5 of menu "Go"delete menuItem 5 of menu "Go"delete menuItem 5 of menu "Go"delete menuItem 5 of menu "Go"delete menuItem 5 of menu "Go"put "Left Align"&return&"Center Align"&return&"Right Align"&return&"--" before menu "style"delete menuItem 9 of menu "Style"delete menuItem 16 of menu "Style"delete menuItem 16 of menu "style"-- setup "Edit"delete menuItem 12 of menu "Edit"delete menuItem 12 of menu "Edit"delete menuItem 12 of menu "Edit"delete menuItem 12 of menu "Edit"put "--"&return&"Message"&return&"qp Tools"&return&"Box Styles" after menu "Edit"put "Slide Effects" after menu "Edit"put "All qp Palettes" after menu Editset the cmdChar of menuItem 17 of menu "Edit" to "A"set the cmdChar of menuItem 13 of menu "Edit" to "M"put "Template" into menuItem 8 of menu "Edit"set the cmdChar of menuItem 8 of menu "Edit" to "B"set the enabled of menuItem 8 of menu "Edit" to falsedelete menuItem 9 of menu "Edit"delete menuItem 9 of menu "Edit"delete menuItem 9 of menu "Edit"-- setup "Objects"put "--"&return&"New Text Box"&return&"New Template T-Box" into menu "Objects"if line 3 of fld "Field data" is true thenput "Unlock Text Boxes" after menuItem 3 of menu "Objects"elseput "Lock Text Boxes" after menuItem 3 of menu "Objects"end ifput "New Slide" before menu "Objects"put "Delete Slide" after menuItem 1 of menu "Objects"put "Set Slide Duration" after menuItem 2 of menu "Objects"put "Match Slide to Sound" after menuItem 3 of menu "Objects"put "--"&return&"New PICTure" after menu "Objects"set the cmdChar of menuItem 1 of menu "Objects" to "N"put "rectangle" into line 1 of fld "field data"-- check menubar statusif line 2 of fld "field data" is not empty thenshow menubarelsehide menubarend ifif line 3 of fld "field data" is empty then put true into line 3 of fld "Field data"unlock screenend openBackgroundon closeBackgroundglobal gVideoShopActiveif gVideoShopActive is true then VideoShopControl VideoShopbrowseModeif line 2 of fld "field data" is "on" thenput empty into line 2 of fld "field data"if offset("Modes",windows()) ‚â†0 then close window "Modes"if offset("Styles",windows()) ‚â†0 then close window "Styles"if offset("effects",windows()) ‚â†0 then close window "effects"end ifif the freesize of this stack > .2 * the size of this stack then domenu "compact stack"end closeBackgroundon openCardglobal gVideoShopActive,qpModeKill,qpModeGrab,qpEffectif ((line 1 of fld "time" is not empty) and (line 1 of fld "time" ‚↠0)) ¬¨or ((line 2 of fld "time" is not empty) and (line 2 of fld "time" ‚↠0)) thenshow bg button 1show bg button 2elseshow bg button 1show bg button 2end ifif qpModeKill then killmodeelse if qpModeGrab then grabberModeelse browseModeif qpEffect is not empty thenunlock screen with visual qpEffectelseunlock screenend ifput number of this card into fld "number"if gVideoShopActive is not empty and gVideoShopActive is true thenput the number of lines of bkgnd fld "MiconList" into lineNumput 1 into countrepeat lineNum timesget line count of bkgnd fld "MiconList"put item 7 of it into btnIDput rect of cd btn id btnID into posRectput item 1 of it into nameput item 2 of it into pathput addAMicon(name, path, posRect, short name of this stack) into refNumput refNum into item 8 of line count of bkgnd fld "MiconList"put count+1 into countend repeatend ifshowPICTSif not qpModeGrab and not qpModeKill thenif (line 2 of fld "time" is 0 or line 2 of fld "time" is empty) then-- time?if 1=1 thenpass openCardelseset the cursor to watchwait (line 1 of fld "time") secondsput (line 3 of fld "time") into theEffectlock screengo next cdend ifelseset the cursor to watchplay (line 2 of fld "time")wait until the sound is "done"put (line 3 of fld "time") into theEffectlock screengo next cdend ifend ifend openCardon closeCardglobal gVideoShopActiveif gVideoShopActive is not empty then if gVideoShopActive thenremoveAllMicons short name of this stackend ifhidePICTSpass closeCardend closeCard-- from DiVA VideoShopfunction StripPath longName-- Returns two items from the longName. The first is the-- path name and the second is the file name.put length of longName into strLengthput strLength into startPtrepeat until (startPt = 0) or (character startPt of longName = ":")put startPt-1 into startPtend repeat-- Pathput char 1 to startPt of longName into item 1 of retVal-- Nameput char startPt+1 to strLength of longName into item 2 of retValreturn retValend StripPath</script>
  304. </background>
  305.